WP_Defender\Controller\Two_Factor D

Total Complexity 148
Dependencies 20
Dependents 8
Total lines 1,101
Lines of code 727
Logical lines of code 348
Comment lines 276
Methods 37
Properties 5

Methods 37

Method Rating Maintainability Complexity Lines of code
profile_update()
B
41 16 52
verify_otp_login_time()
A
36 12 82
render_otp_screen()
A
38 10 69
show_user_profile()
A
39 10 66
maybe_show_otp_form()
A
49 10 30
verify_otp_for_enabling()
A
47 9 37
__construct()
A
43 8 47
maybe_redirect_to_show_2fa_enabler()
S
53 7 23
send_test_email()
S
42 4 59
handle_woocommerce_prevent_admin_access()
S
57 6 19
filter_users_by_2fa()
S
56 5 19
disable_totp()
S
55 5 18
handle_woocommerce_login_redirect()
S
59 5 15
send_backup_code()
S
55 3 21
alter_user_table_row()
S
62 3 11
save_settings()
S
56 2 20
store_session_key()
S
67 3 7
check_route()
S
72 3 5
data_frontend()
S
58 1 16
generate_backup_codes()
S
58 1 16
to_array()
S
63 2 10
import_data()
S
67 2 8
is_auth_enabled_for_user_role()
S
69 2 6
listen_for_jetpack_option()
S
68 2 7
export_strings()
S
70 2 6
config_strings()
S
72 2 5
enqueue_assets()
S
64 2 10
menu_title()
S
66 2 8
clear_providers()
S
75 1 4
main_view()
S
81 1 3
m2_no_ajax()
S
82 1 3
alter_users_table()
S
69 1 6
woocommerce_hooks()
S
71 1 5
remove_data()
S
72 1 5
remove_settings()
S
81 1 3
redirect_url()
S
79 1 3
add_redirect_to_input()
S
79 1 3